package com.yeban.factory.new_instance;

import java.io.Serializable;

/**
 * @Desc TODO
 * @Author yeban
 * @Date 2025/11/23
 */
public class Person implements Cloneable, Serializable {

    private String name;

    public Person() {
    }

    @Override
    protected Object clone() throws CloneNotSupportedException {
        return super.clone();
    }

    public Person(String name) {
        this.name = name;
    }

    /**
     * 获取
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * 设置
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    public String toString() {
        return "Person{name = " + name + "}";
    }
}
